<template>
  <div id="app">
    <template v-if="$route.meta.showLayout !== false">
      <div class="main-container" >
        <side-menu />
        <div class="main-content">
          <header-component/>
          <tabs-nav />
          <router-view />
        </div>
      </div>
    </template>
    <template v-else>
      <router-view />
    </template>
  </div>
</template>

<script>
import SideMenu from './components/layout/SideMenu.vue'
import HeaderComponent from './components/layout/Header.vue'
import TabsNav from './components/layout/TabsNav.vue'
import {getModuleByUser} from '@/api/https'
export default {
  name: 'App',
  components: {
    SideMenu,
    HeaderComponent,
    TabsNav
  },
  data() {
    return {

    }
  },
  created(){
    
  },
  methods: {
   
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#app {
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  height: 100vh;
}
.main-container {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: start;
}
.main-content {
  padding: 0 10px;
  min-height: calc(100vh - 170px);
  box-sizing: border-box;
  flex:1;
  display: grid;
}

</style>